import Button from "./button/index.vue"
import Icon from "./icon/index.vue"
import Input from "./input/index.vue"
import InputNumber from "./inputNumber/index.vue"
import Radio from "./radio/index.vue"
import RadioGroup from "./radio-group/index.vue"
import Checkbox from "./checkbox/index.vue"
import Message from "./message/index"
import Modal from "./modal/index"
import Upload from "./upload/index"

function warp(Component){
    Component.install = function(Vue){
        Vue.component(Component.name,Component)
    }
}

warp(Button);
warp(Icon);
warp(Input);
warp(InputNumber);
warp(Radio);
warp(RadioGroup);
warp(Checkbox);
warp(Upload);

export{
    Button,
    Icon,
    Input,
    InputNumber,
    Radio,
    RadioGroup,
    Checkbox,
    Message,
    Modal,
    Upload
}